using System;

namespace TrueCode.Core
{
	public class EventArgs< T > : EventArgs
	{
		public T Argument{ get; private set; }

		public EventArgs( T argument )
		{
			Argument = argument;
		}

		public override string ToString()
		{
			return Equals( Argument, null ) ? Argument.ToString() : "null of type " + typeof(T).Name;
		}
	}
}